package com.jdb.banner.provider.service.impl;

import com.guns21.result.domain.Result;
import com.guns21.support.service.BaseCommandService;
import com.jdb.banner.api.dto.BannerDTO;
import com.jdb.banner.provider.entity.BannerDO;
import com.jdb.banner.provider.repository.BannerRepository;
import com.jdb.banner.provider.service.BannerCommandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class BannerCommandServiceImpl extends BaseCommandService implements BannerCommandService {
    @Autowired
    private BannerRepository bannerRepository;

    @Override
    public Result<BannerDTO> save(BannerDO loanDO) {
        bannerRepository.save(loanDO);
        return null;
    }
}
